﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static WpfAGVSystem.Common.EnumDefinitions;

namespace WpfAGVSystem.DBModel
{
    [Table("DeviceStation_Entity")]
    public class DeviceStation_Entity:BaseDbmodel
    {
        public int id { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public int Deviceid { get; set; }
        /// <summary>
        /// 预站点
        /// </summary>
        public int PreStation { get; set; }
        /// <summary>
        /// 站点
        /// </summary>
        public int Station { get; set; }
        /// <summary>
        /// 预定任务类型
        /// </summary>
        public int PreTaskType { get; set; }
        /// <summary>
        ///目标任务类型
        /// </summary>
        public int TarTaskType { get; set; }
        /// <summary>
        ///设备类型
        /// </summary>
        public int DeviceType { get; set; }
        /// <summary>
        ///地图类型
        /// </summary>
        public int MapType { get; set; }
        /// <summary>
        ///区域类型
        /// </summary>
        public int AreaType { get; set; }

        /// <summary>
        ///区域类型
        /// </summary>
        public int AgvType { get; set; }
        /// <summary>
        /// 是否可以使用
        /// </summary>
        public bool IsEnable { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 横坐标
        /// </summary>
        public int GoodX { get; set; }
        /// <summary>
        /// 纵坐标
        /// </summary>
        public int GoodY { get; set; }

        public int Flow { get; set; }
        public DeviceStation_Entity Clone()
        {
            DeviceStation_Entity t = new DeviceStation_Entity()
            {
                Deviceid = this.Deviceid,
                PreStation = this.PreStation,
                Station = this.Station,
                PreTaskType = this.PreTaskType,
                TarTaskType = this.TarTaskType,
                DeviceType = this.DeviceType,
                MapType = this.MapType,
                AreaType = this.AreaType,
                IsEnable = this.IsEnable,
                Flow=this.Flow,
                Remark = this.Remark
            };
            return t;
        }
    }
}
